package com.lhh.videoservice.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 李厚航
 */
@FeignClient("algorithm-service")
public interface AlgorithmFeign {

    /**
     * 根据计算目标用户最相似的用户的喜好推荐
     * @param uid
     * @param num
     * @return
     */
    @GetMapping("/Recommendation/algorithm")
    List<Integer> algorithm(@RequestParam("uid") Integer uid, @RequestParam("num") Integer num);

}
